package com.dianzi.certification.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author copa
 * @createDate 2022-03-07 22:02
 * @function
 */
@Data
public class BaseEntity {

    private Integer id;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT + 8")
    private LocalDateTime createTime;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT + 8")
    private LocalDateTime modifyTime;

    @TableLogic
    private Boolean isDeleted;

    @Version
    private Integer version;

}
